function [ODout,bindim]=TreatODfor2Dfit(ODin,xROI,yROI)

if length(xROI)==1392 && length(yROI)==1040
    %Software binning for 2D fits - ONLY NEEDED WHEN ANALYSING FULL IMAGE
    bindim=[8,8];  % Software binning size
else
    bindim=[1,1];
end
% Binning ODraw for 2D fitting
ODout=BinImg2d(ODin(yROI,xROI),bindim);  % NOTE - Rotated w/ respect to original image
end